package com.furongji.education.clients;

import com.furongji.common.domain.query.TeacherQuery;
import com.furongji.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "course-service",contextId = "TeacherFeignClient")
public interface TeacherFeignClient {

    @PostMapping("/admin/courses/pageTeacherCondition/{current}/{size}")
    public Result<Map<String, Object>> pageQuery(@PathVariable Integer current, @PathVariable Integer size,
                                                 @RequestBody(required = false) TeacherQuery teacherQuery);

    @GetMapping("/admin/courses/getTeacher/{id}")
    public Result getTeacher(@PathVariable String id);
}
